Skip to content

fix(heybox-up): reapply saved layout preferences after an official homepage start - #270

Merged
CYoJkoY merged 1 commit into
mainfrom
issue-269-heybox-up-settings-replay
Nov 29, 2026
Merged

CYoJkoY merged 1 commit into
mainfrom
issue-269-heybox-up-settings-replay

Conversation

@CYoJkoY

@CYoJkoY CYoJkoY commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Linked Issue

Closes #269.

Change summary

  • Fix the settings replay gap for a cold start on the untouched official homepage (/): the boot pass skips layout writes there, and the per-route sync hooks never replayed the column width, body line height or nav motion choice. A cold start at / followed by in-app navigation therefore left those three settings at their stylesheet defaults while the gear menu kept showing the stored values.
  • watchTheme().sync() now replays applyFeedWidth(readFeedWidth()) and applyReaderLineHeight(readReaderLineHeight()) on every adapted route, after the theme preset is applied.
  • watchTopNav().sync() now replays applyNavMotionPreference(readNavMotionPreference()) before mountTopNav().
  • releaseTheme() now removes both inline custom properties (--heybox-up-feed-pct, --heybox-up-reading-line-height) so the untouched homepage stays clean after an adapted page has been visited.
  • Add scope hints to the two look-alike sliders: 正文行距 only affects post body text (titles, code blocks and cards keep their own rhythm) and 中栏宽度 only affects the community feed page (/app/bbs/home).
  • Bump the version to 0.12.22 (PATCH) and update the docs changelog.

Verification & Dependencies

  • pnpm typecheck - pass.
  • pnpm test - 60 files / 925 tests pass, including the new 7-test replay regression suite (tests/heybox-up-settings-replay.test.ts).
  • pnpm build -- --target heybox-up - pass; dist/heybox-up.user.js reports @version 0.12.22.
  • No new runtime dependencies.
  • Evidence is static analysis plus jsdom tests; no real-site or CUA verification was performed (CUA is unavailable in this environment).

Review conclusion

Self-review PASS: 4.90/5.00. No open P0/P1/P2 findings.

Permission Notice

This change was written with the repository owner's standing autonomous delivery consent; it modifies only repository-owned source, tests, docs and version metadata.

…mepage start

The boot pass skips every layout write on the official homepage, and the
per-route sync hooks never replayed the column width, body line height or
nav motion choice. A cold start at "/" followed by in-app navigation therefore
left those three settings at their stylesheet defaults while the gear menu
kept showing the stored values.

Replay the three preferences from watchTheme()/watchTopNav() on each adapted
route, drop the inline custom properties in releaseTheme() so the untouched
homepage stays clean, and add scope hints to the two look-alike sliders.

Refs: #269
@CYoJkoY
CYoJkoY merged commit f66eb20 into main Nov 29, 2026
1 check passed
@CYoJkoY
CYoJkoY deleted the issue-269-heybox-up-settings-replay branch November 29, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(heybox-up): reapply saved layout preferences after an official homepage start

1 participant